package edu.sdbi.judge.controller;

import edu.sdbi.judge.domain.vo.StudentResult;
import edu.sdbi.judge.service.impl.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/testJudgeLxm")
public class TestJudgeLxmController {

    @Autowired
    private Judge_1 judge1;
    @Autowired
    private Judge_2 judge2;
    @Autowired
    private Judge7 judge7;
    @Autowired
    private Judge8 judge8;
    @Autowired
    private Judge9 judge9;
    @Autowired
    private Judge10 judge10;
    @Autowired
    private Judge_11 judge11;
    @Autowired
    private Judge_12 judge12;
    @Autowired
    private Judge_13 judge13;
    @Autowired
    private Judge_14 judge14;
    @Autowired
    private Judge_15 judge15;

    @GetMapping("/test1")
    public StudentResult test1() {
        return judge1.getJudgeIpResult("localhost:8080");
    }

    @GetMapping("/test2")
    public StudentResult test2() {
        return judge2.getJudgeIpResult("localhost:8080");
    }

    @GetMapping("/test7")
    public StudentResult test7() {
        return judge7.getJudgeIpResult("localhost:8080");
    }

    @GetMapping("/test8")
    public StudentResult test8() {
        return judge8.getJudgeIpResult("localhost:8080");
    }

    @GetMapping("/test9")
    public StudentResult test9() {
        return judge9.getJudgeIpResult("localhost:8080");
    }

    @GetMapping("/test10")
    public StudentResult test10() {
        return judge10.getJudgeIpResult("localhost:8080");
    }

    @GetMapping("/test11")
    public StudentResult test11() {
        return judge11.getJudgeIpResult("localhost:8080");
    }

    @GetMapping("/test12")
    public StudentResult test12() {
        return judge12.getJudgeIpResult("localhost:8080");
    }

    @GetMapping("/test13")
    public StudentResult test13() {
        return judge13.getJudgeIpResult("localhost:8080");
    }

    @GetMapping("/test14")
    public StudentResult test14() {
        return judge14.getJudgeIpResult("localhost:8080");
    }

    @GetMapping("/test15")
    public StudentResult test15() {
        return judge15.getJudgeIpResult("localhost:8080");
    }

}
